package com.jilujia.web.editor;

import java.beans.PropertyEditorSupport;

import org.apache.commons.lang.StringUtils;

import com.jilujia.domain.user.User;

public class UserEditor extends PropertyEditorSupport {

	public void setAsText(String text) throws IllegalArgumentException {
		if (!StringUtils.isBlank(text)) {
			User user = new User();
			user.setId(Long.valueOf(text));
			setValue(user);
		}
	}
}
